package cn.iocoder.yudao.framework.websocket.core;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 网络套接字信息做
 *
 * @author huangweidong
 * @date 2023/05/09
 */
@Data
@Accessors(chain = true)
public class WebSocketMessageDO {
    /**
     * 接收消息的seesion
     */
    private List<Object> sessionKeyList;
    /**
     * 发送消息
     */
    private String msgText;

    public static WebSocketMessageDO build(List<Object> sessionKeyList, String msgText) {
        return new WebSocketMessageDO().setMsgText(msgText).setSessionKeyList(sessionKeyList);
    }

}
